package com.baifendian.common.constants;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author peng.guo on 2018/3/5.
 */
@Component
@ConfigurationProperties(prefix="jdbc")
@PropertySource(value={"classpath:mybatisConfig.properties"})
public class MybatisConstants {

  public static String driverclassname;
  public static String url;
  public static String username;
  public static String password;
  public static String initialSize;
  public static String minPoolSize;
  public static String maxPoolSize;
  public static String maxIdleTime;

  public static String getDriverclassname() {
    return driverclassname;
  }

  public static void setDriverclassname(String driverclassname) {
    MybatisConstants.driverclassname = driverclassname;
  }

  public static String getUrl() {
    return url;
  }

  public static void setUrl(String url) {
    MybatisConstants.url = url;
  }

  public static String getUsername() {
    return username;
  }

  public static void setUsername(String username) {
    MybatisConstants.username = username;
  }

  public static String getPassword() {
    return password;
  }

  public static void setPassword(String password) {
    MybatisConstants.password = password;
  }

  public static String getInitialSize() {
    return initialSize;
  }

  public static void setInitialSize(String initialSize) {
    MybatisConstants.initialSize = initialSize;
  }

  public static String getMinPoolSize() {
    return minPoolSize;
  }

  public static void setMinPoolSize(String minPoolSize) {
    MybatisConstants.minPoolSize = minPoolSize;
  }

  public static String getMaxPoolSize() {
    return maxPoolSize;
  }

  public static void setMaxPoolSize(String maxPoolSize) {
    MybatisConstants.maxPoolSize = maxPoolSize;
  }

  public static String getMaxIdleTime() {
    return maxIdleTime;
  }

  public static void setMaxIdleTime(String maxIdleTime) {
    MybatisConstants.maxIdleTime = maxIdleTime;
  }
}
